<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>onload</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
    </style>
</head>
<body>
    <script>
        window.onload = function(){

        }
        window.onready = function(){

        }
        /*
            window.onload 等待所有元素加载完后触发
            window.onready 需要页面加载完毕后再执行的业务
        */
    </script>
</body>
</html>